<?php
class ChangeGroup extends Zend_Db_Table
{
	protected $_name = "changegroup";
	public function getIssueChangeGroups($issueId)
	{
		$select = $this->_db->select()
							->from($this->_name,array('id','created', 'author'))
							->where('issueid = ?', $issueId);
		$results = $this->getAdapter()->fetchAll($select);
		return $results;
	}
}